/*
 * @Author: 刘美红 liumeihong@llootong.com
 * @Date: 2025-04-07 11:18:34
 * @LastEditors: 刘美红 liumeihong@llootong.com
 * @LastEditTime: 2025-04-28 19:10:36
 * @FilePath: \gzt-template\src\api\zlcj.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
// 治理场景
import http from './httpInstance';
// 天气
function getWeatherdata(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/enforcement/weatherdata',
    data: params,
  });
}

// 设备列表
function getMapDevice(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/governancescene/devicelist',
    data: params,
  });
}

// 地图数据
function getMapData(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/governancescene/mapdata',
    data: params,
  });
}

// 地图数据--详情趋势和列表
function getMapDevicedetail(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/governancescene/devicedetail',
    data: params,
  });
}

// 场景的事件-事件
function getSceneEvents(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/governancescene/varityeventlist',
    data: params,
  });
}
// 场景的事件-事件---带图片---防火场景事件
function getvarityeventlist4pc(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/governancescene/varityeventlist4pc',
    data: params,
  });
}

// 场景事件趋势
function getSceneEventsTrend(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/governancescene/varityeventtrend',
    data: params,
  });
}

// 事件算法
function getEventAlgorithm(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/governancescene/algorithms',
    data: params,
  });
}

export {
  getEventAlgorithm,
  getSceneEventsTrend,
  getSceneEvents,
  getMapDevice,
  getMapData,
  getWeatherdata,
  getMapDevicedetail,
  getvarityeventlist4pc,
};
